//
//  AllDataHandle.h
//  DongChiDaChiProject1
//
//  Created by lanou3g on 15/10/30.
//  Copyright © 2015年 com.lanou3g. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "AllNextModel.h"

@interface AllDataHandle : NSObject

+ (AllDataHandle *)shareAllDataHandle;

// 请求数据并且返回刷新
- (void)requestAllDataAndReturn:(void (^)(NSArray *array))block;
// 根据indexpath返回相应的数组
- (NSArray *)returnArrayByIndexPath:(NSIndexPath *)indexPath;
// 根据indexPath返回title
- (NSString *)returnTitleByIndexPath:(NSIndexPath *)indexPath;
// 返回cell的数量
- (NSInteger)returnNumberOfCell;

// 根据indexPath和点击的button判断是第几个元素
- (NSInteger)returnIntegerByIndexPath:(NSInteger)row AndButtonsTag:(NSInteger)tag;


// 请求详情界面的数据并且返回
- (void)requestDetailAllDataByIndex:(NSInteger)index AndReturn:(void (^)(NSArray *array))block;
// 返回详情cell的个数
- (NSInteger)returnCountOfDetailCell;
// 根据indexpath返回model
- (AllNextModel *)returnDetailModelByIndexPath:(NSIndexPath *)indexPath;
// 根据indexpath返回stepArray
- (NSArray *)returnStepArrayByIndexPath:(NSIndexPath *)indexPath;




//- (void)showAlertControllerAndDismissWithTitle:(NSString *)title AndString:(NSString *)alertString;


@end
